

<form id="form" action="/index.php/Admin/AdminGroups/add_do" method="post">

	<div class="pad-10">

		<div class="navigate">
			<h1>分组添加</h1>


            <span class="ui-button ui-button-morange fr">
                <a class="ui-button-text fr" href="/index.php/Admin/AdminGroups/">分组列表</a>
            </span>

		</div>


		<div class="col-tab">
			<ul class="tabBut cu-li">
				<li id="tab_setting_1" class="on"
					onclick="SwapTab('setting','on','',2,1);">分组添加</li>
			</ul>
			<div id="div_setting_1" class="contentList pad-10">
				<table width="100%" cellpadding="2" cellspacing="1"
					class="table_form">

					<tr>
						<th width="100">分组名称:</th>
						<td><input type="text" name="group_name"
							id="group_name" class="input-text" value=""
							style="width: 300px;">
							<span class="color-red" title="必填">*</span>	
						</td>
					</tr>

					<tr>
						<th width="100">分组代码:</th>
						<td><input type="text" name="group_code"
							id="group_code" class="input-text" value=""
							style="width: 300px;">
							<span class="color-red" title="必填">*</span>	
						</td>
					</tr>
					
					<tr>
						<th width="100">权限:</th>
						<td>

                            <input type="checkbox" id="check_all" />
                            <label for="check_all">全选</label>

                            <ul>
                                <volist name="roles" id="r">

                                    <include file="Admin:roles" />

                                    <li>
                                        <input type="checkbox" name="roles" id="roles_{$r.id}" value="{$r.role_value}" />
                                        <label for="roles_{$r.id}">[{$r.id}] - {$r.role_name}</label>
                                    </li>
                                </volist>
                            </ul>

                        </td>
					</tr>

				</table>
			</div>

			<div class="bk15"></div>
			<div class="btn">
				<input type="submit" class="button" value="添加" />
			</div>
		</div>
	</div>

    <input type="hidden" name="group_roles" id="group_roles" value="" />
</form>

<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/adm/admin_groups/add.js"></script>